package com.xlk.cxf.service.impl;

import java.util.ArrayList;
import java.util.List;

import javax.jws.WebParam;
import javax.jws.WebService;

import com.xlk.cxf.domain.Reader;
import com.xlk.cxf.service.IReaderService;
/**
 * 
 * 編寫服務端 </br> 
 * 类名: ReaderService </br> 
 * 日期: 2014-2-18 下午01:56:51 </br> 
 * @author 许立亢 
 * @version 1.0
 */
@WebService(endpointInterface="com.xlk.cxf.service.IReaderService",serviceName="readerService")
public class ReaderService implements IReaderService{
	public Reader getReader(@WebParam(name="name") String name,@WebParam(name="password") String password) {
		return new Reader(name,password);
	}
	
	public List<Reader> getReaders(){
		List<Reader> readerList = new ArrayList<Reader>();
		readerList.add(new Reader("shun1","123"));
		readerList.add(new Reader("shun2","123"));
		return readerList;
	}
}